package com.blacktea.behavioralpatterns.mementopattern;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * @description: 备忘录类
 * @author: black tea
 * @date: 2023/3/25 20:07
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CartMemento {

    /**
     * 商品列表
     */
    private List<Goods> items = new ArrayList<>();
    /**
     * 总价
     */
    private BigDecimal totalPrice = BigDecimal.ZERO;

}
